package com.net.xpay.core.service;

import com.net.xpay.common.domain.User;
import com.net.xpay.core.domain.PayTrans;
import com.net.xpay.core.domain.PayTransBatch;
import com.net.xpay.core.domain.collect.CollectionOrder;
import com.net.xpay.core.model.CollectionOrderModel;
import com.net.xpay.core.model.CollectionOrderTransModel;

import java.util.List;

public interface CollectionOrderService {

    /**
     * 新增收款信息
     */
    CollectionOrder addCollectionOrder(CollectionOrderModel model);

    String trans(User merchant, CollectionOrderTransModel transModel);

    //处理转账结果
    void updateCollectionBatch(User user, PayTransBatch batch, List<PayTrans> payTransList);
}
